<?php


namespace seecms\lib\builder\button;

use seecms\lib\builder\modal\Dialog;
use seecms\SeeLang;

class EditButton extends Button
{
    protected $text = 'edit';

    protected $style = 'layui-btn-normal';

    protected $url = 'edit';

    protected $map = [
        'id' => 'id'
    ];

    public function getDialog(): Dialog
    {
        return $this->dialog ?: Dialog::init(SeeLang::btn('edit'))->areaMiddle();
    }
}